<?php
include_once dirname(__FILE__)."/../lang/error.php";
include_once dirname(__FILE__)."/../io/rows.php";
include_once dirname(__FILE__)."/../io/db.php";
class user extends rows{
 	function init(){
 		$this->tableName="sn_user";
 		$this->col["uid"]   = new column("uid",dataCheck::INTEGER);
 		$this->col["uname"] = new column("uname",dataCheck::STRING|dataCheck::NOTNULL);
		$this->col["upwd"] = new column("upwd",dataCheck::STRING|dataCheck::NOTNULL);
 		$this->col["uEmail"]  = new column("uEmail",dataCheck::STRING|dataCheck::NOTNULL);
 		$this->col["unickname"]  = new column("unickname",dataCheck::STRING);
 		$this->col["urealname"]  = new column("urealname",dataCheck::STRING);
 		$this->col["ugender"]  = new column("ugender",dataCheck::INTEGER);
 		$this->col["uplace"]  = new column("uplace",dataCheck::INTEGER);
 		$this->col["userimage"]  = new column("userimage",dataCheck::STRING);
 		$this->col["ujob"]  = new column("ujob",dataCheck::INTEGER);
 		$this->col["uschool"]  = new column("uschool",dataCheck::STRING);
 		$this->col["ulastlogin"]  = new column("ulastlogin",dataCheck::STRING);
 		$this->col["ulastip"]  = new column("ulastip",dataCheck::STRING);
 		$this->col["ustate"]  = new column("ustate",dataCheck::STRING);
 	}

 	
 	
 }
